Carbon


DebuggerNewThreadProcPtr

Header: Threads.h Carbon status: Supported

Defines a pointer to a new thread debugging callback function. A new thread debugging callback function is a debugging function that the Thread Manager calls whenever it creates a new thread.

typedef void(* DebuggerNewThreadProcPtr) (
    ThreadID threadCreated
);

You would declare your function like this if you were to name it MyDebuggerNewThreadCallback:

void MyDebuggerNewThreadCallback (
    ThreadID threadCreated
);
Parameter descriptions
threadCreated

The thread ID of the thread being created.

DISCUSSION

The MyDebuggerNewThreadCallback function is one of three debugging functions that you can install with the SetDebuggerNotificationProcs function. The Thread Manager calls MyDebuggerNewThreadCallback whenever an application creates or allocates a new thread with the NewThread function. The Thread Manager does not call MyDebuggerNewThreadCallback when an application creates a thread pool with the CreateThreadPool function.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)